<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>欢迎页面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="__ADMIN__/css/font.css">
    <link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
    <script src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <blockquote class="layui-elem-quote">欢迎管理员： <span class="x-red">{$Request.session.adminname}</span>！
                        当前登录IP： <span  class="x-red">{$ip}      </span>
                        当前时间： <span id="nowtime">     </span>
                    </blockquote>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">数据统计</div>
                <div class="layui-card-body ">
                    <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>心理咨询师数</h3>
                                <p>
                                    <cite>{$Request.session.enum}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>学生数</h3>
                                <p>
                                    <cite>{$Request.session.snum}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>订单数</h3>
                                <p>
                                    <cite>{$Request.session.onum}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>留言数</h3>
                                <p>
                                    <cite>{$Request.session.mnum}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>公告数</h3>
                                <p>
                                    <cite>{$Request.session.nnum}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>管理员数</h3>
                                <p>
                                    <cite>{$Request.session.anum}</cite></p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">系统信息</div>
                <div class="layui-card-body ">
                    <table class="layui-table">
                        <tbody>
                        <tr>
                            <th>cpcas版本</th>
                            <td>1.0</td>
                        </tr>
                        <tr>
                            <th>服务器地址</th>
                            <td>{$Think.server.HTTP_HOST}</td>
                        </tr>
                        <tr>
                            <th>操作系统</th>
                            <td>{$Request.session.server_version}</td>
                        </tr>
                        <tr>
                            <th>运行环境</th>
                            <td>{$Request.session.server_os}</td>
                        </tr>
                        <tr>
                            <th>PHP版本</th>
                            <td>{$Think.PHP_VERSION}</td>
                        </tr>
                        <tr>
                            <th>PHP运行方式</th>
                            <td>{$Request.session.php_way}</td>
                        </tr>
                        <tr>
                            <th>MYSQL版本</th>
                            <td>{$Request.session.mysql_version}</td>
                        </tr>
                        <tr>
                            <th>ThinkPHP</th>
                            <td>{$Think.version}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <table class="layui-table">
                    <tbody>
                    <tr>
                        <th>开发者</th>
                        <td>苏孙举(1072321396@qq.com)</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <style id="welcome_style"></style>
    <div class="layui-col-md12">
        <blockquote class="layui-elem-quote layui-quote-nm">感谢layui,百度Echarts,jquery,本系统由x-admin提供技术支持。</blockquote>
    </div>
</div>
</div>
</div>
<script type="text/javascript">
    function gettime() {
        var time = new Date();
        var arr = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
        var hour = time.getHours();
        var min = time.getMinutes();
        var sec = time.getSeconds();
        var madetime = time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate() + " " + arr[time.getDay()] + "  " + hour + (min < 10 ? ":0" : ":") + min + (sec < 10 ? ":0" : ":") + sec + (hour < 12 ? " am" : " pm");
        document.getElementById("nowtime").innerText = madetime;
    }

    gettime();//显示第一秒的时间
    setInterval("gettime()", 1000);
</script>
</body>
</html>